<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
</head>
<body>

	<input type="button" onclick="disp_alert()" value="异步显示消息框" />
	<input type="button" onclick="disp_alert1()" value="12显示消息框" />
	<input type="button" onclick="disp_alert2()" value="14显示消息框" />
	<input type="button" onclick="disp_alert3()" value="15显示消息框" />
	<input type="button" onclick="disp_alert4()" value="16显示消息框" />
	 44466
	<a
		href="http://localhost:8080/cas/logout?service=https://www.baidu.com/">退出</a>
</body>
</html>
<script type="text/javascript">
	function disp_alert() {

		$.ajax({
			url : "http://localhost:8090/zeepos/pase/sangfor/login",
			dataType : "json",
			type : 'post',
			data : {
				captcha : "123"
			},
			success : function(data) {
				alert(data);
				alert(11);
				co
			},
			error : function(xhr, error, data) {
				alert(data);
				alert(xhr.status);
// 				alert(error);
				// 		        window.location=data;
			}
		});
	}
	function disp_alert1() {

		$.ajax({
			url : "http://localhost:8088/async/123",
			dataType : "json",
			type : 'post',
			data : {
				name : "123"
			},
			success : function(data) {

				alert(data);
			},
			error : function(xhr, error, data) {
				alert(xhr.status);
				alert(error);
				window.location = data;
			}
		});
	}
	function disp_alert2() {

		$.ajax({
			url : "http://localhost:8088/async/124",
			dataType : "json",
			type : 'post',
			data : {
				name : "123"
			},
			success : function(data) {

				alert(data);
			},
			error : function(xhr, error, data) {
				alert(xhr.status);
				alert(error);
				window.location = data;
			}
		});
	}
	function disp_alert3() {

		$.ajax({
			url : "http://localhost:8088/async/webasync",
			dataType : "json",
			type : 'post',
			data : {
				name : "123"
			},
			success : function(data) {

				alert(data);
			},
			error : function(xhr, error, data) {
				alert(xhr.status);
				alert(error);
// 				window.location = data;
			}
		});
	}
	function disp_alert4() {

		$.ajax({
			url : "http://localhost:8088/async/deferredResult",
			dataType : "json",
			type : 'post',
			data : {
				name : "123"
			},
			success : function(data) {

				alert(data);
			},
			error : function(xhr, error, data) {
				alert(xhr.status);
				alert(error);
				alert(data);
// 				window.location = data;
			}
		});
	}
</script>